﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using smartphone.App_Code;

namespace smartphone.UserControls
{
    public partial class OthersNews : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Visible = false;
            string NewID = Request.QueryString["NewsId"];
            if (NewID != null)
            {
                this.Visible = true;
                News n = new News();
                RepeaterOthersNews.DataSource = n.GetOthersNews(Int32.Parse(NewID));
                RepeaterOthersNews.DataBind();
            }
            
        }

    }
}